<?php

namespace App\Http\Controllers;

use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
use App\Models\Admin\Procate;
use App\Models\Admin\About;
use App\Models\Admin\People;
use App\Models\Admin\Picture;
use App\Models\Admin\Category;
class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
    
    //前台父页面模板变量

    public $main;

    public function __construct(){
        
        $this->main =  $this->main();
    }

    public function main(){

        $procate = Procate::get();
        $about = About::get();
        $people = People::get();
        $picture = Picture::get();
        $category = Category::get();
        return ['procate'=>$procate,'about'=>$about,'people'=>$people,'picture'=>$picture,'category'=>$category,];

    }






    

  

}
